package com.weichen.studentgameexchange.member.config;

import cn.hutool.core.lang.ansi.AnsiEncoder;
import lombok.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 功能：
 * 作者：惟尘
 * 日期：2025/1/19 16:20
 */
@Configuration
@ComponentScan("com.weichen.studentgameexchange.member")
public class UserConfig {

    //引入加密工具：使用 BCryptPasswordEncoder
    @Bean
    public BCryptPasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }

}
